﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HubScape.Web.Models
{
    public class Message
    {
        public string text { get; set; }
        public string html { get; set; }
        public string markdown { get; set; }
    }

    public class DetailedMessage
    {
        public string text { get; set; }
        public string html { get; set; }
        public string markdown { get; set; }
    }

    public class Author
    {
        public string id { get; set; }
        public string displayName { get; set; }
        public string uniqueName { get; set; }
        public string url { get; set; }
        public string imageUrl { get; set; }
    }

    public class CheckedInBy
    {
        public string id { get; set; }
        public string displayName { get; set; }
        public string uniqueName { get; set; }
        public string url { get; set; }
        public string imageUrl { get; set; }
    }

    public class Resource
    {
        public int changesetId { get; set; }
        public string url { get; set; }
        public Author author { get; set; }
        public CheckedInBy checkedInBy { get; set; }
        public string createdDate { get; set; }
        public string comment { get; set; }
    }

    public class Collection
    {
        public string id { get; set; }
    }

    public class Account
    {
        public string id { get; set; }
    }

    public class ResourceContainers
    {
        public Collection collection { get; set; }
        public Account account { get; set; }
    }

    public class RootObject
    {
        public string subscriptionId { get; set; }
        public int notificationId { get; set; }
        public string id { get; set; }
        public string eventType { get; set; }
        public string publisherId { get; set; }
        public Message message { get; set; }
        public DetailedMessage detailedMessage { get; set; }
        public Resource resource { get; set; }
        public string resourceVersion { get; set; }
        public ResourceContainers resourceContainers { get; set; }
        public string createdDate { get; set; }
    }
}